package model;

public class SuGuan extends User {
    private String building; // 宿舍楼栋

    // 构造器
    public SuGuan() {
        super();
       setPower("sg"); // 设置 power 为 宿管的缩写
    }

    public SuGuan(String id, String password, String building) {
        super(); // 设置 power 为 sg
        setId(id); // 使用父类的 setId 方法设置 id
        setPassword(password); // 使用父类的 setPassword 方法设置 password
        this.building = building;
        
    }

 // Getter 和 Setter 方法
    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }
    
}
